import React, { Component } from "react";
import { connect } from "react-redux";
import { bindActionCreators } from "redux";
//引入css

// 引入仓库actions


class Home extends Component {
    componentDidMount() { }
    render() {
        return (
            <div>
                <h3>this is Home</h3>
            </div>
        );
    }
}

//导入数据
let mapStateToProps = (state) => ({});

//导入所有方法
let mapDispatchToProps = (dispatch) => ({ home: bindActionCreators(actions, dispatch), });

//将数据和方法给this.props
export default connect(mapStateToProps, mapDispatchToProps)(Home);